//
//  HXFriendViewController.m
//  百思不得姐
//
//  Created by Hubery on 16/1/25.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXFriendViewController.h"
#import "HXRecommendViewController.h"
#import "XMGLoginRegisterViewController.h"

@interface HXFriendViewController ()

@end

@implementation HXFriendViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // 设置导航栏标题
    self.navigationItem.title = @"我的关注";
    
    // 设置导航栏左边的按钮
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:@"friendsRecommentIcon" highImage:@"friendsRecommentIcon-click" target:self action:@selector(friendsClick)];

    // 设置背景色
    self.view.backgroundColor = XMGGlobalBg;
}

- (void)friendsClick
{
    HXRecommendViewController *vc = [[HXRecommendViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)loginRegister {
    /**alloc init 的时候 自动去加载同名xib*/
    XMGLoginRegisterViewController *login = [[XMGLoginRegisterViewController alloc] init];
    [self presentViewController:login animated:YES completion:nil];
}
@end
